// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.

package org.jetbrains.kotlin.idea.codeInsight.gradle;

import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.idea.base.plugin.KotlinPluginMode;
import org.jetbrains.kotlin.idea.base.test.TestRoot;
import org.jetbrains.kotlin.idea.test.JUnit3RunnerWithInners;
import org.jetbrains.kotlin.idea.test.KotlinTestUtils;
import org.jetbrains.kotlin.test.TestMetadata;
import org.junit.runner.RunWith;

/**
 * This class is generated by {@link org.jetbrains.kotlin.testGenerator.generator.TestGenerator}.
 * DO NOT MODIFY MANUALLY.
 */
@SuppressWarnings("all")
@TestRoot("gradle/gradle-java/tests.k1")
@TestDataPath("$CONTENT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public abstract class GradleBuildFileHighlightingTestGenerated extends AbstractGradleBuildFileHighlightingTest {
    @RunWith(JUnit3RunnerWithInners.class)
    @TestMetadata("../../../idea/tests/testData/gradle/highlighting/gradle8")
    public static class Gradle8 extends AbstractGradleBuildFileHighlightingTest {
        @java.lang.Override
        @org.jetbrains.annotations.NotNull
        public final KotlinPluginMode getPluginMode() {
            return KotlinPluginMode.K1;
        }

        private void runTest(String testDataFilePath) throws Exception {
            KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
        }

        @Override
        protected void setUp() {
            gradleVersion = "8.6";
            super.setUp();
        }

        @TestMetadata("gradleSampleMultiProject")
        public void testGradleSampleMultiProject() throws Exception {
            runTest("../../../idea/tests/testData/gradle/highlighting/gradle8/gradleSampleMultiProject/");
        }

        @TestMetadata("javaLibraryPlugin")
        public void testJavaLibraryPlugin() throws Exception {
            runTest("../../../idea/tests/testData/gradle/highlighting/gradle8/javaLibraryPlugin/");
        }

        @TestMetadata("wizardMultiAllTargets")
        public void testWizardMultiAllTargets() throws Exception {
            runTest("../../../idea/tests/testData/gradle/highlighting/gradle8/wizardMultiAllTargets/");
        }

        @TestMetadata("wizardNativeUiMultiplatformApp")
        public void testWizardNativeUiMultiplatformApp() throws Exception {
            runTest("../../../idea/tests/testData/gradle/highlighting/gradle8/wizardNativeUiMultiplatformApp/");
        }

        @TestMetadata("wizardSharedUiMultiplatformApp")
        public void testWizardSharedUiMultiplatformApp() throws Exception {
            runTest("../../../idea/tests/testData/gradle/highlighting/gradle8/wizardSharedUiMultiplatformApp/");
        }

        @TestMetadata("wizardSimpleKotlinProject")
        public void testWizardSimpleKotlinProject() throws Exception {
            runTest("../../../idea/tests/testData/gradle/highlighting/gradle8/wizardSimpleKotlinProject/");
        }
    }

    @RunWith(JUnit3RunnerWithInners.class)
    @TestMetadata("../../../idea/tests/testData/gradle/highlighting/gradle7")
    public static class Gradle7 extends AbstractGradleBuildFileHighlightingTest {
        @java.lang.Override
        @org.jetbrains.annotations.NotNull
        public final KotlinPluginMode getPluginMode() {
            return KotlinPluginMode.K1;
        }

        private void runTest(String testDataFilePath) throws Exception {
            KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
        }

        @Override
        protected void setUp() {
            gradleVersion = "7.6.4";
            super.setUp();
        }

        @TestMetadata("gradleSampleMultiProject")
        public void testGradleSampleMultiProject() throws Exception {
            runTest("../../../idea/tests/testData/gradle/highlighting/gradle7/gradleSampleMultiProject/");
        }

        @TestMetadata("javaLibraryPlugin")
        public void testJavaLibraryPlugin() throws Exception {
            runTest("../../../idea/tests/testData/gradle/highlighting/gradle7/javaLibraryPlugin/");
        }

        @TestMetadata("wizardSimpleKotlinProject")
        public void testWizardSimpleKotlinProject() throws Exception {
            runTest("../../../idea/tests/testData/gradle/highlighting/gradle7/wizardSimpleKotlinProject/");
        }
    }
}
